package io.github.talelin.latticy.feign;

import io.github.talelin.latticy.model.MsgLogDO;
import io.github.talelin.latticy.vo.CreatedVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName：WmsFeignClient
 * @Author: ljj
 * @Date: 2022/5/26 9:20
 */
@FeignClient(value = "wms-server")
public interface WmsMsgLogFeignClient {

    /**
     * 创建一条日志记录
     *
     * @param msgLogDO    日志消息
     * @return 是否成功
     */
    @PostMapping("/v1/msg-log")
    void createMsgLog(@RequestBody MsgLogDO msgLogDO);

}
